package com.qiall.boot.userservice.data.mapper;

import com.qiall.boot.userservice.data.entity.OrganizationInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 吴金辉
 */
@Mapper
public interface OrganizationInfoMapper {
    void insert(OrganizationInfo organizationInfo);
    void update(OrganizationInfo organizationInfo);
    OrganizationInfo select(@Param("id")int id);
    List<OrganizationInfo> selectByPage(@Param("org") OrganizationInfo organizationInfo,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("limit")int limit ,@Param("offset")int offset);
    int countByName(@Param("name") String name);
    int  count(@Param("org") OrganizationInfo organizationInfo,@Param("startTime")String startTime,@Param("endTime")String endTime);
     void delete(@Param("orgId")int id);
}
